package com.smart.core.starter.model;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 树节点
 *
 * @author guxiaobai
 * @date 2018/12/4 12:09
 */
@Data
public class TreeNode {
    protected long id;
    protected long parentId;
    protected List<TreeNode> children = new ArrayList<TreeNode>();

    public void add(TreeNode node) {
        children.add(node);
    }
}
